//
//  TMBaseUserTool.h
//  TMBabyWarehouseSDK
//
//  Created by rxk on 2019/5/8.
//  Copyright © 2019 Tianma. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <TMSDK/TMSDK.h>

#define TMOperationBaseLoginNotication @"TMOperationBaseLoginNotication"
#define TMOperationBaseLoginFailNotication @"TMOperationBaseLoginFailNotication"
#define TMOperationBaseRefreshPage @"TMBASE_Need_Refresh_Page"

#define TMOperationBaseModifyUserInfo @"TMOperationBaseModifyUserInfo"


typedef void(^TMBaseCheckToken)(BOOL isSuccess, NSString * _Nullable errorMessage);
NS_ASSUME_NONNULL_BEGIN

@interface TMBaseUserTool : NSObject

/// 端标识
@property (nonatomic, copy, readonly) NSString * appName;

/// 运营平台服务器
@property (nonatomic, copy, readonly) NSString * operationDomain;
@property (nonatomic, copy, readonly) NSString * operationH5Domain;


@property (nonatomic, strong) NSString * _Nullable token;
@property (nonatomic, strong) NSDictionary * _Nullable user_info;
@property (nonatomic, strong) NSDictionary * _Nullable sign_info;


+ (TMBaseUserTool *)instance;
+ (void)clearUserInfo;
+ (void)tmbase_checkIsLoginWithCheckComplate:(TMBaseCheckToken)complate;

@end

NS_ASSUME_NONNULL_END
